home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / granite < prev    next >
Text File  |  1995-11-08  |  1KB  |  54 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2.  
  3. #version 3.0
  4. global_settings { assumed_gamma 2.2 }
  5.  
  6. #include "colors.inc"           // Standard colors library
  7. #include "shapes.inc"           // Commonly used object shapes
  8. #include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
  9.  
  10. camera {
  11.    location  <0, 3.5, -3.7>
  12.    direction <0, 0,    1>
  13.    up        <0, 1,    0>
  14.    right   <4/3, 0,    0>
  15.    look_at   <0, -0.25,    0>
  16. }
  17.  
  18. // Light source
  19.  
  20. light_source {<-30, 11, +20>  color White  }
  21. light_source {< 31, 12, -20>  color White  }
  22. light_source {< 32, 11, -20>  color LightGray }
  23.  
  24. #include "rdgranit.map"
  25. #declare Pink_Gran_Texture =
  26. texture {
  27.    pigment {
  28.       granite
  29.       color_map { M_RedGranite }
  30.       scale 0.4
  31.       }
  32.    finish {
  33.       specular 0.75
  34.       roughness 0.0085
  35.       ambient 0.15
  36.       reflection 0.2
  37.    }
  38. }
  39.  
  40. union {
  41.    sphere {<0, 0, 0>, 1.75}
  42.    difference {
  43.       object {UnitBox scale 1.5}
  44.       // Clip some sqr holes in the box to make a 3D box frame
  45.       object {UnitBox scale <1.51, 1.25, 1.25> }   // "clip" x
  46.       object {UnitBox scale <1.25, 1.51, 1.25> }   // "clip" y
  47.       object {UnitBox scale <1.25, 1.25, 1.51> }   // "clip" z
  48.    }
  49.    texture { Pink_Gran_Texture scale 0.25 }
  50.    bounded_by { object {UnitBox scale 1.75 } }
  51.    rotate y*45
  52. }
  53.  
  54.